
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>员工离职</title>
		<%include("/common/include.html"){}%>
		<style type="text/css">
			.basic li{
				display: inline-block;
				margin-left: 120px;
				margin-top: 10px;
			}
			.handOver li{
				display: inline-block;
				width:235px;
				text-align:right;
				margin-top: 5px;
			}
			.check li{
				display:inline-block;
				width:210px;
				text-align:right;
				margin-left:350px;
				margin-top:10px;
			}
		</style>
	</head>
	<body>
		<form id="outPerForm"   method="post"  enctype="multipart/form-data">
			<div style="width: 800px;height: auto;margin: 0 auto;">
				<ul class="basic">
					<input id = "personnelIds" type="hidden" name="outPersonnel.userIds" value="${user.ids! }">				
					 <li style="margin-left: 20px;">
						<span>入职时间</span>
						<input name="outPersonnel.entryTime" class="easyui-datebox inputBox theme-textbox-radius" data-options="sharedCalendar:'#cc'" style="height: 30px;"value="${intoPersonnel.fillingDate! }">
					</li> 
					<div id="cc" class="easyui-calendar"></div>				
					<li>
						<span>员工工号</span>
						<input class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">
					</li>
					<li>
						<span>离职时间</span>
						<input name="outPersonnel.dimissionTime" class="easyui-datebox inputBox theme-textbox-radius" data-options="sharedCalendar:'#cc'" style="height: 30px;">
					</li>
					<li style="margin-left: 20px;">
						<span>离职原因</span>
						 <#code type="select" id="outReason_select" name="outPersonnel.dimissionReason" code="code_outReason"   class="easyui-combobox inputBox theme-textbox-radius" style="height:30px"/>
						
					</li>
				</ul>
				<p style="height: 5px;"></p>
				<div class="easyui-panel" title="本岗位工作交接" data-options="cls:'theme-panel-orange'" style="height:130px;padding:5px;">
					<ul class="handOver">
						<li style="margin-left: 0px;">
							<span>物品、资料、文件</span>
							<input name="outPersonnel.position_goods_delivery" class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">
						</li>		
						<li>
							<span>移交人</span>
							<#organization type="select" id="" name="outPersonnel.position_goods_to_handover"  defaultCode="${userids !}" class="easyui-combobox inputBox theme-textbox-radius" organization="${organids! }" style="height:30px;"/>						        
						</li>
						<li>
							<span>交接人</span>
							<#organization type="select" id="" name="outPersonnel.position_goods_to_handover"  defaultCode="${userids !}" class="easyui-combobox inputBox theme-textbox-radius" organization="${organids! }" style="height:30px;"/>	
						</li>				
						<br />
						<li style="margin-left: 0px;">
							<span style="margin-left: 25px;">遗留工作移交</span>
							<input name="outPersonnel.position_work_delivery" class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">
						</li>
						<li>
							<span>移交人</span>
							<#organization type="select" id="" name="outPersonnel.position_goods_to_handover"  defaultCode="${userids !}" class="easyui-combobox inputBox theme-textbox-radius" organization="${organids! }" style="height:30px;"/>								
						</li>
						<li>
							<span>交接人</span>
							<#organization type="select" id="" name="outPersonnel.position_goods_to_handover"  defaultCode="${userids !}" class="easyui-combobox inputBox theme-textbox-radius" organization="${organids! }" style="height:30px;"/>								
						</li>
					</ul>
				</div>
				<div class="easyui-panel" title="人事行政部" data-options="cls:'theme-panel-orange'" style="height:155px;padding:5px;">
					<ul class="handOver">
						<li style="margin-left: 0px;">
							<span style="margin-left: 50px;">钥匙交接</span>
							<input name="outPersonnel.personnel_key_delivery" class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">
						</li>
						<li>
							<span>移交人</span>
							<#organization type="select" id="" name="outPersonnel.position_goods_to_handover"  defaultCode="${userids !}" class="easyui-combobox inputBox theme-textbox-radius" organization="${organids! }" style="height:30px;"/>	
							
						</li>
						<li>
							<span>交接人</span>
							<!-- <#organization type="select" id="" name="outPersonnel.position_goods_to_handover"  defaultCode="${userids !}" class="easyui-combobox inputBox theme-textbox-radius" organization="${organids! }" style="height:30px;"/>	 -->
							<#organization type="select" id="" name="outPersonnel.position_goods_handover"  defaultCode="${userids !}" class="easyui-combobox inputBox theme-textbox-radius" organization="${organids! }" style="height:30px;"/>	
						</li>				
						<br />
						<li style="margin-left: 0px;">
							<span style="margin-left: 25px;">遗留工作移交</span>
							<input name="outPersonnel.position_work_delivery" class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">
						</li>
						<li>
							<span>移交人</span>
							<#organization type="select" id="" name="outPersonnel.position_work_to_handover"  defaultCode="${userids !}" class="easyui-combobox inputBox theme-textbox-radius" organization="${organids! }" style="height:30px;"/>								
						</li>
						<li>
							<span>交接人</span>
							<#organization type="select" id="" name="outPersonnel.position_work_handover"  defaultCode="${userids !}" class="easyui-combobox inputBox theme-textbox-radius" organization="${organids! }" style="height:30px;"/>								
						</li>
					</ul>
				</div>
				<div class="easyui-panel" title="人事行政部" data-options="cls:'theme-panel-orange'" style="height:155px;padding:5px;">
					<ul class="handOver">
						<li style="margin-left: 0px;">
							<span style="margin-left: 50px;">钥匙交接</span>
							<input name="outPersonnel.personnel_key_delivery" class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">
						</li>
						<li>
							<span>移交人</span>
							<#organization type="select" id="" name="outPersonnel.personnel_key_to_handover"  defaultCode="${userids !}" class="easyui-combobox inputBox theme-textbox-radius" organization="${organids! }" style="height:30px;"/>	
							
						</li>
						<li>
							<span>交接人</span>
							<#organization type="select" id="" name="outPersonnel.personnel_key_handover"  defaultCode="${userids !}" class="easyui-combobox inputBox theme-textbox-radius" organization="${organids! }" style="height:30px;"/>								
						</li>
						<br />
						<li style="margin-left: 0px;">
							<span style="margin-left: 50px;">出勤天数</span>
							<input name="outPersonnel.personnel_attendance_day" class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">
						</li>
						<li>
							<span style="margin-left: -12px;">请假天数</span>
							<input name="outPersonnel.personnel_leave_days" class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">	
						</li>
						<li>
							<span style="margin-left: 12px;">其他</span>
							<input name="outPersonnel.personnel_other" class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">	
						</li>
					</ul>
				</div>
				<div class="easyui-panel" title="财务部" data-options="cls:'theme-panel-orange'" style="height:120px;padding:5px;">
					<ul class="handOver">
						<li style="margin-left: 0px;">
							<span style="margin-left: 50px;">借款结算</span>
							<input name="outPersonnel.financial_borrowing_settlement" class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">
						</li>
						<li>
							<span style="margin-left: -15px;">工资结算</span>
							<input name="outPersonnel.financial_salary_settlement" class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">	
						</li>
						<li>
							<span style="margin-left: 15px;">其他</span>
							<input name="outPersonnel.financial_other" class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">	
						</li>
						<br />
						<li style="margin-left: 0px;">
							<span style="margin-left: 50px;">出纳签字</span>
							<input name="outPersonnel.cashier_signature" class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">	
						</li>
					</ul>
				</div>				
				<ul class="check">
					<li style="margin-left: 0px;">
						<span>部门经理审批</span>
						<input name="outPersonnel.employer_opinion" class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">
					</li>
					<li>
						<span>人事行政部审批</span>
						<input name="outPersonnel.personnel_department_opinion" class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">
					</li>
					<br />
					<li style="margin-left: 0px;">
						<span>副总审批</span>
						<input name="outPersonnel.vice_president_opinion" class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">
					</li>
					<li>
						<span>总经理审批</span>
						<input name="outPersonnel.president_opinion" class="easyui-textbox inputBox theme-textbox-radius" style="height: 30px;">
					</li>
							
				</ul>
	 						
			</div>
		</form>
			
		
		<script type="text/javascript">	

	
		
		var submitNow = function($dialog, $grid, $tree, $pjq) {
			var url = "${cxt !}/outPersonnel/saveOutPer";
			$.post(url, sy.serializeObject($('#outPerForm')), function(result) {
				//alert(result.msg);
				if (result.msg == '200') {
					$.slideMsg("修改成功！", $pjq);
				} else {
					$.alert($pjq, result.msg);
				}
			}, 'json');
			
		};
		var submitForm = function($dialog, $grid, $tree, $pjq) {
			submitNow($dialog, $grid, $tree, $pjq);
			// 					$form.isValid(function(isValied){
			// 						if(isValied){
			// 							submitNow($dialog, $grid, $pjq);
			// 						}
			// 					});
		};
		
			
		</script>
	</body>
</html>
